package com.ruoyi.common.entity.DO.order;

import com.ruoyi.common.entity.DO.BaseDO;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

@EqualsAndHashCode(callSuper = true)
@Data
@Table(name = "member_recharge_order")
public class MemberRechargeOrderDO extends BaseDO {
    @Id
    private Long id;
    private Long shopId;
    //充值的会员id
    private Long memberId;
    private Long productId;
    private String productSn;
    private String orderSn;
    private String paySn;
    // 充值赠送积分
    private Integer giftCredit;
    // 充值赠送金额
    private Integer giftAmount;
    //充值金额
    private BigDecimal amount;
    //优惠金额
    private BigDecimal discountAmount;
    //优惠说明
    private String discountDesc;
    //实际付款金额
    private BigDecimal payAmount;
    private Integer payStatus;
    private Integer orderStatus;
    private Date payTime;
    private Date cancelTime;
    //订单备注
    private String orderRemark;
}
